
package com.wangzha.business.service;

import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.Record;
import com.wangzha.common.base.service.BaseService;
import com.wangzha.common.model.ApkVersion;
import com.wangzha.common.vo.Grid;

/**
 * 版本更新
 */
public class ApkVersionService extends BaseService {
	private ApkVersion dao = new ApkVersion().dao();

    @Override
   public Model<ApkVersion> getDao(){
    	return dao;
   }

   public Grid page(int pageNumber, int pageSize,Record record) {
      Record rd = new Record();
      //rd.set("user_name like", record.getStr("keyword"));
      return queryForList(pageNumber, pageSize,rd);
   }

   public ApkVersion getLastApkVersion() {
      return dao.findFirst("select * from apk_version ORDER BY id desc LIMIT 0, 1");
   }
}

